package com.cci.kangdao.fieldService.service;

import com.cci.kangdao.fieldService.model.FieldServiceEngineer;
import com.cci.kangdao.fieldService.model.FieldServiceItem;
import com.cci.kangdao.fieldService.model.FieldServiceUpgrade;
import com.cci.kangdao.fieldService.model.FieldServiceWorkOrder;
import com.cci.kangdao.fieldService.model.WorkOrderReport;
import org.springframework.scheduling.annotation.Async;

/**
 * @author William Du
 * @date 2019/12/31
 */
public interface SyncCCGService {

    @Async
    void process(String itemId);

    Boolean syncServiceItemFromApp(FieldServiceEngineer engineer, FieldServiceItem fieldServiceItem);

    Boolean syncServiceOrderFromApp(FieldServiceWorkOrder workOrder);

    Boolean syncOrderStatusFromApp(FieldServiceWorkOrder workOrder,String message);

    Boolean syncOrderStatusFromApp(FieldServiceUpgrade upgrade);

    Boolean syncReportFromAPP(WorkOrderReport report);

}
